package com.etc.service.impl;

import com.etc.dao.OrderDao;
import com.etc.dto.OrderAndAddress;
import com.etc.entity.Order;
import com.etc.entity.OrderDetails;
import com.etc.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class OrderServiceImpl implements OrderService {
    @Resource
    private OrderDao orderDao;

    public List<OrderAndAddress> queryAllOrder(Integer id,Integer osid) {
        return orderDao.queryAllOrder(id,osid);
    }

    @Override
    public List<OrderAndAddress> queryIdOrder(Integer id) {
        return orderDao.queryIdOrder(id);
    }

    @Override
    public int modifyState(Integer id, Integer osid) {
        return orderDao.modifyState(id, osid);
    }

    @Override
    public List<OrderDetails> queryAllId(Integer id) {
        return orderDao.queryAllId(id);
    }
}
